//导入vue里的createApp函数
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'//引入elementui的js文件
import 'element-plus/dist/index.css'//引入elementui的css文件
import 'bootstrap/dist/css/bootstrap.css'//引入bootstrap的css文件
import router from '@/router/router.js'
import {axiosInstance} from './axios/axios-http'
import  * as ElIcons from '@element-plus/icons-vue'//引入icons-vue文件

//vue初始化
const app = createApp(App)
for (let iconName in ElIcons){
    app.component(iconName,ElIcons[iconName])
}//初始化icons-vue
app.config.globalProperties.$axios = axiosInstance
app.use(ElementPlus)//elementui的js的文件需要安装
app.use(router)
app.mount('#app')